<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
	#div001{
		width:200px;
		height:200px;
		background-color:#39C;
	}
	#div002{
		width:200px;
		height:200px;
		background-color:pink;
		float:right;
	}
	#div003{
		width:200px;
		height:200px;
		background-color:green;
		float:left;
	}
	#div004{
		width:200px;
		height:200px;
		background-color:yellow;
		clear:both;
	}
</style>

<body>
<div id="div001">不动如山</div>
<div id="div002">往左</div>
<div id="div003">往右</div>
<div id="div004">存在</div>
</body>
</html>
